package cn.laixueit.service;

import cn.laixueit.base.R;
import cn.laixueit.pojo.Datadictionart;
import cn.laixueit.pojo.DatadictionartDetail;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.yulichang.base.MPJBaseService;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
 *
 */
public interface DatadictionartService extends MPJBaseService<Datadictionart> {
    /**
     * 根据字典名称查询字典数据
     * @param dataDictCodes 字典编码集合
     * @return 查询字典数据集合及其明细
     */
     Map<String, LinkedList<DatadictionartDetail>> getDataDictionArtMapList(String dataDictCodes);

    List<Datadictionart> getDataDictionArtList(String dataDictCodes);

    void saveDatadictionart(Datadictionart datadictionart);

    R pageDatadictionart(Page<Datadictionart> pageInfo, Datadictionart datadictionart);

    R getDataDictDetails(String dataDictCode);

    void saveDatadictionartDetail(DatadictionartDetail datadictionartDetail);

    R deleteDatadictByCode(String dataDictCode);

    R deleteDatadictDetailByCode(String dataDictCode);
}
